<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="../js/jquery-1.11.0.js"></script>
<script type="text/javascript" src="../js/jquery-migrate-1.2.1.js"></script>
<script type="text/javascript">
$(function(){
    function back(){
         window.location="../customer/home";
    }
    function time(){
         $("#time").text($("#hTime").val());
         $("#time").text($("#hTime").val()-1);
         $("#hTime").val($("#hTime").val()-1);
         if($("#hTime").val()==0){
                 back();
         }
    }
    
    setInterval(time,1000);
});
</script>
</head>
<body>
<h1>支付成功</h1>
<input type="hidden"  value="3" id="hTime"/>
<p id = "time">3</p><span>秒后返回首页</span>
</body>
</html>
